package com.bingxue.edu.management.education.model.query;

import com.bingxue.edu.common.enums.LessonStatusEnum;
import com.bingxue.edu.framework.mybatis.query.Query;
import com.bingxue.edu.framework.mybatis.query.QueryType;
import com.bingxue.edu.management.education.model.entity.Lesson;
import com.mybatisflex.annotation.TableRef;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDate;

@Data
@Schema(description = "排课信息查询条件")
@TableRef(Lesson.class)
public class ClassLessonQuery {

    @Schema(description = "上课日期")
    @Query(type = QueryType.GE, field = "lessonDate")
    private LocalDate startTime;

    @Schema(description = "上课日期")
    @Query(type = QueryType.LT, field = "lessonDate")
    private LocalDate endTime;

    @Schema(description = "课次状态")
    private LessonStatusEnum lessonStatus;

    @Schema(description = "班级id")
    private String classId;
}
